package yesjava.news.dao;

import yesjava.news.entity.News;
import yesjava.news.utils.Page;

import java.util.List;

public interface NewsDao {
    List<News> selectAllNews();
    public Page<News> selectByPage(int pageNo, int pageSize) ;
    void insertNews(List<News> newsList);

    void deleteById(Integer... id);

    News selectById(Integer id);

    void updateById(News news);
}
